home *** CD-ROM | disk | FTP | other *** search
-
-
- Class DECK - Basic card handling.
- Version 1.0
- By Paul D'Ascensio
- July 20, 1991
-
- This is my first attempt at building a class using C++. This class is to
- be used as a starting point for card games (I hope). It allows you to
- create a deck of cards using one or more decks. The member functions
- allow you the shuffle the deck (Shuffle), cut the deck (CutDeck), take the
- next card (TakeNextCard), and get the values of the CARD struct for any
- card in the deck. I also added a function that checks to see if the next
- card is the last card.
-
- I am also in the process of trying to derive classes from DECK that would
- handle poker decks, blackjack decks, and solitaire decks.
-
- I am also in the process of trying to derive classes from DECK that would
- handle poker decks, blackjack decks, and solitaire decks.I am hereby donating this code to the public domain so anyone can use it,
- laugh at it, make it better, or maybe tell me where I've gone wrong. You
- may use this code in any program (personal or commercial) without obligation
- and at your own risk (remember it's my initial class). If you do use this
- code, please drop me note. If you make this code better, please share it
- with me and others in the BPROGB forum on Compuserve.
-
- Thank you and Good Luck!
-
- Paul D'Ascensio
- 76040,33
-